from rest_framework.routers import DefaultRouter
from . import views
from django.conf.urls import url

router = DefaultRouter()
router.register(r'areas', views.AreasViewSet, base_name='areas')

urlpatterns = []

urlpatterns += router.urls

# urlpatterns = [
#     url(r'^areas/$',views.AreasViewSet.as_view()),
# ]